ASP.NET 8 Best Practices by Jonathan R. Danylko

ASP.NET 8 Best Practices by Jonathan R. Danylko

Author:Jonathan R. Danylko [Danylko, Jonathan R.]
Language: eng
Format: epub
Publisher: Packt Publishing Pvt Ltd
Published: 2023-12-06T00:00:00+00:00


We’ll call the property jsBundles. Since every TypeScript file was transpiled into a JavaScript file, we have to identify which files to load. A good practice to follow is to name the file the same as the actual page. The good news is the Browserify module will follow the imports in each file and include it in the bundling. As we add more TypeScript to the project, add the primary script to the list for automatic compilation.

Create a new variable where the scripts will reside for the web application: const destPaths = { jsFolder: path.resolve(basePath, 'js') // wwwroot/js };



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.